package junit;

import org.junit.Before;
import org.junit.Test;

import processcommand.ProcessCommand;
import processcommand.impl.ProcessCommandImpl;

public class TestProcessCommand 
{
	private ProcessCommand pc;

	@Before
	public void init() {
		pc=new ProcessCommandImpl();
	}

	@Test
	public void testProcess1() 
	{
		String cmd="L xml id";
		String output=pc.process(cmd)+"\r\n";
		System.out.println(output);
	}
	@Test
	public void testProcess2() 
	{
		String cmd="L line birth";
		String output=pc.process(cmd)+"\r\n";
		System.out.println(output);
	}
	@Test
	public void testProcess3() 
	{
		String cmd="C xml id";
		String output=pc.process(cmd)+"\r\n";
		System.out.println(output);
	}
	@Test
	public void testProcess4() 
	{
		String cmd="C line id";
		String output=pc.process(cmd)+"\r\n";
		System.out.println(output);
	}
}
